@inject NavigationManager NavigationManager

@code {
    /// <summary>
    /// 组件初始化时执行重定向
    /// </summary>
    protected override void OnInitialized()
    {
        NavigationManager.NavigateTo("/admin/login", true);
    }
} 